<?php

App::uses('AppModel', 'Model');

class Contact extends AppModel {
    
    public $useTable = false;
    
    public $validate = array(
        'name' => array(
            'rule'    => 'notEmpty',
            'message' => 'Morate uneti Ime i Prezime'
        ),
        'email' => array(
            array(
                'rule'    => 'notEmpty',
                'message' => 'Morate uneti E-Mail adresu'
            ),
            array(
                'rule'    => 'email',
                'message' => 'Uneta E-Mail adresa nije validna'
            )
        ),
        'message' => array(
            'rule'    => 'notEmpty',
            'message' => 'Morate uneti Poruku'
        )
    );
    
}